package com.gym.openapi.services;

import com.gym.openapi.common.ResponseResult;
import com.gym.openapi.common.ResultTable;
import com.gym.openapi.entity.Menu;

import java.util.List;

/**
 * @author ming
 * 2021/11/24
 * description:
 */
public interface MenuServices {

    /**
     *@author:ming
     *@Date: 2021/11/24
     *@description:菜单分级
     */
    List<Menu> getMenuByUid(Integer id);

    /**
     * @author:ming
     * @Date: 2021/11/24
     * @description:显示授权菜单树
     */
    List<Menu> getAllTree();

    ResultTable getList(Integer page, Integer limit);

    Menu getMenuById(Integer id);

    ResponseResult update(Menu menu);

    ResponseResult add(Menu menu);
}
